import request from './http'

export function loginByUsername (loginName, password) {
  const data = {
    loginName,
    password
  }
  return request({
    url: '/api/sysUser/sysUserLogin',
    method: 'post',
    data
  })
}

export function logout () {
  return request({
    url: '/api/sysUser/logout',
    method: 'post'
  })
}

// export function getUserInfo (token) {
//   return request({
//     url: '/user/info',
//     method: 'get',
//     params: { token }
//   })
// }
